package com.example.demo.model;

import com.example.demo.entity.Product;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class DashboardInfo {
    private Long salesToday; //今日的销售额
    private Integer addUserToday;//今日新增用户数量
    private Integer addUserWeek;//近一周新增用户数量
    private Integer addUserMonth;//近30天新增用户数量
    private List<Product> hotProduct;//销售量前十的热门商品


    public DashboardInfo() {
    }

    public Long getSalesToday() {
        return salesToday;
    }

    public void setSalesToday(Long salesToday) {
        this.salesToday = salesToday;
    }

    public Integer getAddUserToday() {
        return addUserToday;
    }

    public void setAddUserToday(Integer addUserToday) {
        this.addUserToday = addUserToday;
    }

    public Integer getAddUserWeek() {
        return addUserWeek;
    }

    public void setAddUserWeek(Integer addUserWeek) {
        this.addUserWeek = addUserWeek;
    }

    public Integer getAddUserMonth() {
        return addUserMonth;
    }

    public void setAddUserMonth(Integer addUserMonth) {
        this.addUserMonth = addUserMonth;
    }

    public List<Product> getHotProduct() {
        return hotProduct;
    }

    public void setHotProduct(List<Product> hotProduct) {
        this.hotProduct = hotProduct;
    }

    public DashboardInfo(Long salesToday, Integer addUserToday, Integer addUserWeek, Integer addUserMonth, List<Product> hotProduct) {
        this.salesToday = salesToday;
        this.addUserToday = addUserToday;
        this.addUserWeek = addUserWeek;
        this.addUserMonth = addUserMonth;
        this.hotProduct = hotProduct;
    }

}
